package p_aop_xml;

import org.aspectj.lang.ProceedingJoinPoint;

public class Aop {
	
	public void begin(){
		System.out.println("事务开始/异常");
	}
	
	public void commit(){
		System.out.println("事务提交/关闭");
	}
	
	public void afterRuturning(){
		System.out.println("afterRuturning");
	}
	
	public void afterThrowing(){
		System.out.println("afterThrowing");
	}
	
	public void around(ProceedingJoinPoint pjp) throws Throwable{
		System.out.println("环绕前...");
		pjp.proceed();//执行目标方法
		System.out.println("环绕后...");
		
	}
}
